/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.garethc.encapsulation.service.internal;

import za.ac.cput.garethc.encapsulation.model.Person;
import za.ac.cput.garethc.encapsulation.service.DisplayService;

/**
 *
 * @author Gareth
 */
public class TextDisplayService implements DisplayService{

    @Override
    public String printDetails(Person p) 
    {
        return "Name: " + p.getName() + " " + p.getSurname() + "\nID: " + p.getId();
    }
    
}
